import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { PageComponent } from './components/page/page.component';
import { RoleAddorEditComponent } from './components/role-addor-edit/role-addor-edit.component';
import { RoleComponent } from './components/role/role.component';
import { StaffAddorEditComponent } from './components/staff-addor-edit/staff-addor-edit.component';
import { StaffPageComponent } from './components/staff-page/staff-page.component';
import { StaffComponent } from './components/staff/staff.component';

const routes: Routes = [
  {path:'staff-component',component:StaffComponent},
  {path:'role-component',component:RoleComponent},
  {path:'staff-addor-edit-component',component:StaffAddorEditComponent},
  {path:'role-addor-edit-component',component:RoleAddorEditComponent},
  {path:'staff-page-component',component:StaffPageComponent},
  {path:'page-component',component:PageComponent}
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
